const dbCfg = {
  local: {
    host: '127.0.0.1',
    port: '3306',
    user: 'root',
    password: 'root',
    database: 'report_boot'
  },
};

const curCfg = dbCfg.local;

const mysql_1 = require("mysql");
let connection = mysql_1.createConnection(curCfg);
connection.connect();

const ConnLocal = {
  getConn() {
    return connection;
  }
};

module.exports = ConnLocal;